﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.IO;

namespace SynergyCounts.View
{
    public class LogEntry
    {
        public  string _userName;

        public LogEntry()
        {

        }
        public LogEntry(string user)
        {
            _userName = user;
        }

        public void CreateLog()
        {
            using (StreamWriter sw = new StreamWriter(@"\\intetics.com.ua\dfs\work\Temp\__TOOLS__\logfileSynCount.txt", true, Encoding.Default))
            {
                sw.WriteLine(_userName + "," + DateTime.Now.Day + "/" + DateTime.Now.Month + "/" + DateTime.Now.Year + "," + DateTime.Now.Hour + ":" + DateTime.Now.Minute + ":" + DateTime.Now.Second);
            }
        }
    }
}
